<?php

if(STAINLESS != 1){
	require_once('config.php');
	redirect("$home_url/");
}

$title = 'List product by personal name';

require_once('facebook.php');

$uri = parse_url($_SERVER['REQUEST_URI']);
parse_str($uri['query'],$q);

$keyword = 'personal+name';

if($q['q'] != ''){
	$keyword = $q['q'];
	$keyword = preg_replace("/[^a-zA-Z0-9\s]+/","",$keyword);
	
}elseif(isset($fb_name) && $fb_name){
	$keyword = $fb_name;
}

$link_craw = "http://www.sunfrogshirts.com/search/index.cfm?SEARCH=" . urlencode($keyword);
	
?>
<!doctype html>
<html>
<head>
	<title><?php echo $title; ?></title>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<link href="<?php echo $home_url; ?>/font-awesome/css/font-awesome.min.css" rel="stylesheet">
	<link rel="stylesheet" href="<?php echo $home_url; ?>/css/animate.css" />
	<link rel="stylesheet" href="<?php echo $home_url; ?>/bootstrap/css/bootstrap.min.css" />
	<link rel="stylesheet" href="<?php echo $home_url; ?>/bootstrap/css/bootstrap-theme.min.css" />
	<link rel="stylesheet" href="<?php echo $home_url; ?>/css/general.css" />
	<link rel="stylesheet" href="<?php echo $home_url; ?>/css/style.css" />
</head>
<body>
<nav role="navigation" id="navigation" class="navbar navbar-default">
	<div class="container-fluid">
		<div id="logo" class="navbar-header">
			<!-- <a style="margin-top:0" class="margin5-top navbar-brand" href="<?php echo $home_url; ?>">STYLE AND DESIRE</a> no logo -->
			<a style="margin-top:0" class="text-hide margin5-top navbar-brand" href="<?php echo $home_url; ?>">STYLE AND DESIRE</a>
		</div>
		<form id="boxSearch" role="search" class="navbar-right navbar-form" method="post" action="" style="margin-top:18px">
			<div class="form-group">
				<input type="text" class="form-control" name="keyword" id="keyword" size="40" value="<?php if($keyword !='personal+name') echo $keyword;?>" placeholder="search everything you want..." />
			</div>
			<button type="submit" name="request_search" id="request_search" class="btn btn-default"><i class="fa fa-search"></i></button>
		</form>
	</div>
</nav>